@extends('layout.default')

@section('layout.content')
  <div class="row">
    <div class="col-xs-12">
      <h4 class="header blue">{{$plan->title}}>{{$plan->name}}
        <a class="btn btn-sm btn-primary pull-right"
           href="{{route('education.category.create', array($method, $plan->id))}}"><i class="ace-icon fa fa-plus"></i>类别</a>
      </h4>

    </div>
  </div>
  <div class="row">
    @foreach( $categories as $category)
      <div class="col-xs-6 col-sm-4 col-md-3 channel-row">
        <div class="thumbnail search-thumbnail channel-href" data-aid="{{$category->id}}">
          <div class="caption">
            <div class="panel-title"><a
                  href="{{ route('education.category.edit',array($method, $category->id)) }}">{{$category->name}}</a>
            </div>
            <div class="panel-body channel-property">
              <div class="panel-l"></div>
            </div>
            <div class="panel-body">
              <div class="panel-30"><a
                    href="{{ route('education.grade.index',array($method,$plan->id,$category->id)) }}"
                    class="pink2">{{$category->grade->count()}}</a>
                <p>{!!$category->present()->categoryTitle!!}</p></div>
              <div class="panel-30"><a
                    href="{{ route('education.grade.index',array($method,$plan->id,$category->id)) }}"
                    class="blue">{{$category->numbers()}}</a>
                <p>招生</p></div>
              <div class="panel-30"><a
                    href="{{ route('education.grade.index',array($method,$plan->id,$category->id)) }}"
                    class="green">{{$category->enrols->count()}}</a>
                <p>报名</p></div>
            </div>

          </div>

        </div>
      </div>
    @endforeach
  </div><!-- /.row -->

@stop

@section('javascript')

@stop